package cn.kgc.wyttest.controller;

import cn.kgc.wyttest.dto.ServiceAppointOutPutDto;
import cn.kgc.wyttest.service.ServiceAppointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Chang
 * @program: wytTest
 * @description: 服务预约信息Controller
 * @date 2022-10-17 07:32:48
 */
@RequestMapping("/select")
@RestController
public class ServiceAppointController {

    @Autowired
    private ServiceAppointService serviceAppointService;


    @GetMapping("/api/service/check")
    public ServiceAppointOutPutDto purchaseCheck(String number){
        return serviceAppointService.selectByNumber(number);
    }



}
